export const defaultMockMenu = [
    {
        name: '游戏管理',
        code: 'Product',
        children: [
            {
                name: '游戏',
                code: 'ProductCategory',
            },
            {
                name: '大区',
                code: 'ProductArea',
            },
            {
                name: '服务器',
                code: 'ProductServer',
            },
            // tag
            {
                name: '属性标签',
                code: 'ProductTag',
            },
            {
                // 条件
                name: '游戏属性',
                code: 'ProductCondition',
            },
            {
                name: '账号',
                code: 'ProductList',
            },
        ]
    },
    {
        name: '后台用户管理',
        code: 'user-management',
        children: [
            {
                name: '角色管理',
                code: 'role',
            },
            {
                name: '用户管理',
                code: 'user',
            }
        ]
    },
]

export function getStatus(item) {
    if (item.order_status === 0) {
        if (item.status === 1) {
            return '待支付'
        } else if (item.status === 2) {
            return '待发货'
        } else if (item.status === 3) {
            if (item.order_type == 1) {
                return '配送中'
            } else if (item.order_type == 0){
                return '待自提'
            }
        } else if (item.status === 4) {
            return '待收货'
        } else if (item.status === 5) {
            return '交易成功'
        }
    } else if (item.order_status === 1) {
        return '退款审核中'
    } else if (item.order_status === 2) {
        return '退款成功'
    } else if (item.order_status === 3) {
        return '退款失败'
    }
}